package com.ncell.cell;

public class P {
    private float x;
    private float y;
    private float activation;

    private float oarkn;
    /**
     * does this P connected to active I or TP in current iteration
     *
     */
    private boolean connectedToActive;

    public boolean isConnectedToActive() {
        return connectedToActive;
    }

    public void setConnectedToActive(boolean connectedToActive) {
        this.connectedToActive = connectedToActive;
    }

    public float getActivation() {
        return activation;
    }

    public void setActivation(float activation) {
        this.activation = activation;
    }

    public boolean isActive() {
        return activation > 0.5;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getOarkn() {
        return oarkn;
    }

    public void setOarkn(float oarkn) {
        this.oarkn = oarkn;
    }

    @Override
    public String toString() {
        return "a=" + activation + ";connected=" + isConnectedToActive() + ";oarkn=" + oarkn;
    }

}
